package com.itheima.reggie;

import lombok.extern.slf4j.Slf4j;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.web.servlet.ServletComponentScan;
import org.springframework.cache.annotation.EnableCaching;
import org.springframework.transaction.annotation.EnableTransactionManagement;


//boot项目启动类
@SpringBootApplication
//开启日志
@Slf4j
//使能扫描到过滤器相关注解
@ServletComponentScan
//开启事务支持
@EnableTransactionManagement
//开启缓存注解功能
@EnableCaching
public class reggieApplication {
    public static void main(String[] args) {
        SpringApplication.run(reggieApplication.class, args);
//        log的使用
        log.info("项目启动成功");
    }
}
